//
//  Tweet.h
//  Juxin
//
//  Created by heyong on 15/5/29.
//  Copyright (c) 2015年 季诺. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "EditImageView.h"

@class TweetImage;

@interface Tweet : NSObject

/**编辑图片 */
@property (nonatomic,strong) EditImageView *editImageView;
@property (readonly, nonatomic, strong) NSMutableArray *tweetImages;
@property (readwrite, nonatomic, strong) NSMutableArray *selectedAssetURLs;
@property (readwrite, nonatomic, strong) NSString *tweetContent;
@property (readwrite, nonatomic, strong) NSString *nextCommentStr;
@property (assign, nonatomic) CGFloat contentHeight;

- (void)addASelectedAssetURL:(NSString *)assetURL;
- (void)deleteASelectedAssetURL:(NSString *)assetURL;
- (void)deleteATweetImage:(TweetImage *)tweetImage;
- (void)addATweetImage:(TweetImage *)tweetImg;
- (BOOL)isAllImagesHaveDone;

@end


typedef NS_ENUM(NSInteger, TweetImageUploadState)
{
    TweetImageUploadStateInit = 0,
    TweetImageUploadStateIng,
    TweetImageUploadStateSuccess,
    TweetImageUploadStateFail
};


@interface TweetImage : NSObject

@property (readwrite, nonatomic, strong) UIImage *image, *thumbnailImage;
@property (strong, nonatomic) NSURL *assetURL;
@property (assign, nonatomic) TweetImageUploadState uploadState;
@property (readwrite, nonatomic, strong) NSString *imageStr;
+ (instancetype)tweetImageWithAssetURL:(NSString *)assetURL;

+ (instancetype)tweetImageWithAssetURL:(NSURL *)assetURL andImage:(UIImage *)image;


@end
